<?php

$action = getAction();

switch ($action) {
	case "index":
		$sql = " select *  from ".table('building') . " where status = '" . STATUS::VALID . "'";
		$list=$db->getAll($sql);
		$smarty->assign("list",$list);
		$smarty->display("index.html");
		break;
}
?>